﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using DAL;

namespace BLL
{
    public class B_T
    {
        DAL.D_T DAL_t = new DAL.D_T();

        public List<Models.t_data> getList()
        {
            return DAL_t.getList();
        }
        public Models.t_data select(Models.Teacher teacher)
        {
            var res = DAL_t.select(teacher);
            return res;
        }

        public bool save_result(List<Models.t_data> ts)
        {
            return DAL_t.save_result(ts); ;
        }

        public bool commit(Models.t_data model)
        {
            var res = DAL_t.commit_suger(model);
            return res==1? true : false;
        }
    }
}
